package com.ntlg.sendmessage.mapper;

import com.ntlg.sendmessage.pojo.Phone;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface SendSmsMapper {
    /*根据手机号码查询所使用的短信模板*/
    Phone selectPhone(@Param("PhoneNumber") String PhoneNumber);

    /*保存生成的验证码到数据库*/
    void insertPhoneCode(@Param("phoneCode") Integer phoneCode,@Param("format") String format);
}
